<?php

namespace app\index\validate;

use think\Validate;
/**
 *  User 后台登录
 *  自动验证模型类
 * Class User
 * @package app\validate\model
 */
class User extends Validate
{
    //验证规则
    protected $rule = [
        'uname'=>'require',
        'password'=>'require',
//        'code'=>'require|captcha'
    ];
    protected $message = [
        'uname.require'=>'请输入用户名',
        'password.require'=>'请输入密码',
//        'code.require'=>'请输入验证码',
        'code.captcha'=>'验证码不正确'
    ];
}
